From b71419530d70d9b1f2ba524aabd27a9efe08f52f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roger=20Pau=20Monn=C3=A9?= Date: Thu, 20 Oct 2022 16:36:48 +0200 Subject: [PATCH] test/vpci: add dummy cfcheck define MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Some vpci functions got the cfcheck attribute added, but that's not defined in the user-space test harness, so add a dummy define in order for the harness to build. Fixes: 4ed7d5525f ('xen/vpci: CFI hardening') Signed-off-by: Roger Pau Monné Acked-by: Andrew Cooper Acked-by: Anthony PERARD Release-acked-by: Henry Wang --- tools/tests/vpci/emul.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/tests/vpci/emul.h b/tools/tests/vpci/emul.h index 2e1d3057c9..386b15eb86 100644 --- a/tools/tests/vpci/emul.h +++ b/tools/tests/vpci/emul.h @@ -37,6 +37,7 @@ #define prefetch(x) __builtin_prefetch(x) #define ASSERT(x) assert(x) #define __must_check __attribute__((__warn_unused_result__)) +#define cf_check #include "list.h" -- 2.30.2